var HALL_IP = "47.97.249.195";//如果非本机访问，这里要变
var HALL_CLIENT_PORT = 9131;
var HALL_ROOM_PORT = 9132;
var HALL_LOCAL_IP = '172.28.79.12';

var ACCOUNT_PRI_KEY = "^&*#$%()@";
var ROOM_PRI_KEY = "~!@#$(*&^%$&";


var GAMECLIENT_IP = '47.97.249.195';
var GAMECLIENT_LOCAL_IP = '172.28.79.12';


exports.mysql = function(){
	return {
		HOST:'172.28.79.12',
		USER:'root',
		PSWD:'WqF1234567$',//如果连接失败，请检查这里
		DB:'db_babykylin_old',//如果连接失败，请检查这里
		PORT:3306,
	}
}

//账号服配置
exports.account_server = function(){
	return {
		CLIENT_PORT:9130,
		HALL_IP:HALL_IP,
		HALL_CLIENT_PORT:HALL_CLIENT_PORT,
		ACCOUNT_PRI_KEY:ACCOUNT_PRI_KEY,
		
		//
		DEALDER_API_IP:HALL_LOCAL_IP,
		DEALDER_API_PORT:13583,
		VERSION:'20161227',
		APP_WEB:'http://fir.im/2f17',
	};
};

//大厅服配置
exports.hall_server = function(){
	return {
		HALL_IP:HALL_IP,
		CLEINT_PORT:HALL_CLIENT_PORT,
		FOR_ROOM_IP:HALL_LOCAL_IP,
		ROOM_PORT:HALL_ROOM_PORT,
		ACCOUNT_PRI_KEY:ACCOUNT_PRI_KEY,
		ROOM_PRI_KEY:ROOM_PRI_KEY
	};
};

//游戏服配置
exports.game_server = function(){
	return {
		SERVER_ID:"001",
		
		//暴露给大厅服的HTTP端口号
		HTTP_PORT:9133,
		//HTTP TICK的间隔时间，用于向大厅服汇报情况
		HTTP_TICK_TIME:5000,
		//大厅服IP
		HALL_IP:HALL_LOCAL_IP,
		FOR_HALL_IP:GAMECLIENT_LOCAL_IP,
		//大厅服端口
		HALL_PORT:HALL_ROOM_PORT,
		//与大厅服协商好的通信加密KEY
		ROOM_PRI_KEY:ROOM_PRI_KEY,
		
		//暴露给客户端的接口
		CLIENT_IP:GAMECLIENT_IP,
		CLIENT_PORT:13000,
	};
};